// —— 1. 在第一行就拦截原生 ResizeObserver —— 
if (typeof window !== 'undefined' && window.ResizeObserver) {
  const OriginalRO = window.ResizeObserver;
  window.ResizeObserver = class extends OriginalRO {
    observe(target) {
      try {
        return super.observe(target);
      } catch (e) {
        return null;  // 吞掉 ResizeObserver loop 错误
      }
    }
    unobserve(target) {
      try {
        return super.unobserve(target);
      } catch {
        return null;
      }
    }
    disconnect() {
      try {
        return super.disconnect();
      } catch {
        return null;
      }
    }
  };
}

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'



const app=createApp(App);
app.use(ElementPlus,{
  locale: zhCn,
}).use(router).mount('#app')
